<extend name="Public/base" />

<block name="style">
    <link href="__STATIC__/iCheck/skins/flat/green.css" rel="stylesheet">
</block>
<block name="body">
    <div class="right_col" role="main">
        <div class="">



            <div class="clearfix"></div>
           




            <div class="col-md-12 col-sm-12 col-xs-12">
                            <ul class="tab-nav ">
                <li data-tab="tab1" class=""><a href="{:U('index')}">广告位列表</a></li>

                <li data-tab="tab2" class="current"><a href="javascript:void(0);">{$meta_title}</a></li>

            </ul>
                <div class="x_panel">
                  

                    <div class="x_content">
    <ul class="nav navbar-right panel_toolbox">
                            <li class="">
                                <a href="{:U('Adv/adv_add',array('ap_id'=>$ap_id))}"><button type="button" class="btn btn-success"><i class="fa fa-edit"></i>&nbsp;添加广告</button></a>
                            </li>  
                                                        
                            
                        </ul> <div class="clearfix"></div>
<form class="ids">
                        <div class="table-responsive">
                            <table class="table table-striped jambo_table bulk_action">
                                <thead>
                                    <tr class="headings">
                                       
                                        <th class="column-title">排序 </th>
                                        <th class="column-title">广告名称 </th>
                                        <th class="column-title">所属广告位 </th>
                                       
                                        <th class="column-title">开始时间 </th>
                                        <th class="column-title">结束时间 </th>
                                        <th class="column-title">是否启用 </th>
                                    
                                       
                                        <th class="column-title no-link last"><span class="nobr">操作</span>
                                        </th>
                                        <th class="bulk-actions" colspan="12">
                                            <a class="antoo" style="color:#fff; font-weight:500;">Bulk Actions ( <span class="action-cnt"> </span> ) <i class="fa fa-chevron-down"></i></a>
                                        </th>
                                    </tr>
                                </thead>

                                <tbody>
                                <notempty name="_list">
                                <volist name='_list' id='vo'>
                                    <tr class="even pointer  del_id_{$vo.adv_id}">
                                       
                                        <td class=" "><input type="text" name="slide_sort" class="input-sm mb15 input_change_fous" value="{$vo.slide_sort}"  size="5" href="{:U('Adv/changeSort',['id'=>$vo['adv_id']])}"></td>
                                        <td class=" "><a href="{:U('Adv/index',array('pid'=>$vo['ap_id']))}">{$vo.adv_title}</a></td>
                                      
                                        <td class=" ">{$vo.ap_id}</td>
                                        <td class=" ">{$vo.adv_start_date|time_format}</td>
                                        <td class=" ">{$vo.adv_end_date|time_format}</td>
                                       
                                        <td class=" ">
                                            
                                                <a href="{:U('changeStatus?method=advpstionStatus&id='.$vo['adv_id'].'&status='.$vo['is_show'])}" class='btn   {$vo.is_show==1?'btn-success':'btn-warning'}  btn-xs common_href_comfirm' titles="您将'{$vo.is_show==1?'隐藏':'显示'}'本条记录?" content="确认{$vo.is_show==1?'隐藏':'显示'}">{$vo.is_show==1?'显示':'隐藏'}</a>
                                        </td>
                                       
                            
                                        <td>
                                             <a href="{:U('Adv/adv_edit',array('adv_id'=>$vo['adv_id']))}" class="btn btn-info btn-xs " ><i class="fa fa-pencil"></i>编辑</a>
                                            <a href="{:U('changeStatus?method=deleteArticle&id='.$vo['adv_id'])}" class="btn btn-danger btn-xs  del_common_tr" ><i class="fa fa-trash-o"></i>删除</a>
                                         </td>
                                    </tr>
                                </volist>
                                
                                    <else />
                                <tr class="even pointer  del_id_{$vo.id}">
                                <td  colspan="12">
                                    无相关记录
                                     </td>
                                        </tr>
                                </notempty>
                                </tbody>
                            </table>
                        </div>
</form>


                        <nav>
                            <ul class="pagination">
                               {$_page}
                            </ul>
                        </nav>          
                    </div>    
                </div>   
            </div>
            
            
            
            
            
            
            
        </div>
    </div>
</div>
</block>
<block name="script">

    <script src="__STATIC__/iCheck/icheck.min.js"></script>
    <script>
        Lzy.highlight_subnav('{:U('Adv/index')}');
    </script>
</block>